﻿





namespace Hotpot.Plugins.Models
{
    public class RoleReadOnly
    {
        public RoleReadOnly(Hotpot.Models.Role role)
        {
            Name = role.Name;
            DisplayName = role.DisplayName;
            Group = new RoleReadOnly(role.Group);
            Type = role.Type;
        }

        public string Name { get; private set; }
        public string DisplayName { get; private set; }
        public RoleReadOnly Group { get; private set; }
        public Hotpot.Models.RoleType Type { get; private set; }
    }
}
